import { getRequest, postRequest, putRequest, postBodyRequest, getNoAuthRequest, postNoAuthRequest } from '@/libs/axios';

export const getTaskOne = (params) => {
    return getRequest('/task/getOne', params)
}
export const getTaskList = (params) => {
    return getRequest('/task/getByPage', params)
}
export const getTaskCount = (params) => {
    return getRequest('/task/count', params)
}
export const addTask = (params) => {
    return postRequest('/task/insert', params)
}
export const editTask = (params) => {
    return postRequest('/task/update', params)
}
export const addOrEditTask = (params) => {
    return postRequest('/task/insertOrUpdate', params)
}
export const deleteTask = (params) => {
    return postRequest('/task/delByIds', params)
}
export const getAllStudent = (params) => {
    return getRequest('/student/getAll', params)
}